#include "SDL.h"


extern void setup();

extern void loop();


extern "C" {

int SDL_main(int argc, char **argv) {
    setup();

    SDL_Event event;
    while (1) {
        SDL_PollEvent(&event);

        if (event.type == SDL_QUIT) {
            return 0;
        }

        // TODO: key

        loop();
    }
}
}
